package com.ruoyi.pims.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 专业信息对象 edu_major
 * 
 * @author ruoyi
 * @date 2025-04-30
 */
public class EduMajor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 专业ID */
    private Long majorId;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String majorName;

    /** 专业代码 */
    @Excel(name = "专业代码")
    private String majorCode;

    /** 毕业要求选修课总学分 */
    @Excel(name = "毕业要求选修课总学分")
    private BigDecimal electiveCredits;

    /** 毕业要求必修课总学分 */
    @Excel(name = "毕业要求必修课总学分")
    private BigDecimal compulsoryCredits;

    public void setMajorId(Long majorId) 
    {
        this.majorId = majorId;
    }

    public Long getMajorId() 
    {
        return majorId;
    }

    public void setMajorName(String majorName) 
    {
        this.majorName = majorName;
    }

    public String getMajorName() 
    {
        return majorName;
    }

    public void setMajorCode(String majorCode) 
    {
        this.majorCode = majorCode;
    }

    public String getMajorCode() 
    {
        return majorCode;
    }

    public void setElectiveCredits(BigDecimal electiveCredits) 
    {
        this.electiveCredits = electiveCredits;
    }

    public BigDecimal getElectiveCredits() 
    {
        return electiveCredits;
    }

    public void setCompulsoryCredits(BigDecimal compulsoryCredits) 
    {
        this.compulsoryCredits = compulsoryCredits;
    }

    public BigDecimal getCompulsoryCredits() 
    {
        return compulsoryCredits;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("majorId", getMajorId())
            .append("majorName", getMajorName())
            .append("majorCode", getMajorCode())
            .append("electiveCredits", getElectiveCredits())
            .append("compulsoryCredits", getCompulsoryCredits())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
